<%@ page language="java"  pageEncoding="UTF-8"%>
<%
  if(session!=null)
	{		
		session.removeAttribute("userInfo");
		session.invalidate();
	}
	String flag =request.getParameter("flag")+"";
    if(flag.equals("exit"))
	{
		response.sendRedirect(request.getContextPath()+"/webmanager/login.jsp");
	}
	else
	{
		out.println("<script type=\"text/javascript\">window.close();</script>");
	}
%>
